package com.gz.steak.modules.system.controller;

import com.gz.steak.common.web.base.BaseController;
import com.gz.steak.common.web.result.Result;
import com.gz.steak.modules.system.pojo.dataobject.SysLoginLog;
import com.gz.steak.modules.system.service.SysLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 刘牌
 * @Date 2020/3/28 0028 21:32
 * @Version 1.0
 */
@RestController
@RequestMapping("/loginLog")
public class SysLoginLogController extends BaseController {

    @Autowired
    private SysLoginLogService sysLoginLogService;

    @GetMapping("/list")
    public Result list(){
        //分页  nowPage  pageSize
        List<SysLoginLog> list = sysLoginLogService.list(0,20);
        return Result.success(list);
    }
}
